import 'package:find_friend/const/const.dart';
import 'package:flutter/material.dart';

class MineCerUpoadPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    final size = MediaQuery.of(context).size;

    return Scaffold(
      backgroundColor: APP_scaffold_back_color,
      appBar: AppBar(
        title: Text("学校信息"),
        backgroundColor: Colors.white,
        centerTitle: true,
        leading: IconButton(
          onPressed: (){
            Navigator.of(context).pop();
          },
          icon: Image.asset("assets/fanhui.png"),
        ),
      ),
      body: Stack(
        children: [
          Positioned(
            left: 50,
            right: 50,
            bottom: 150.h,
            child: Container(
              width: size.width,
              alignment: Alignment.center,
              padding: const EdgeInsets.symmetric(vertical: 10),
              decoration: BoxDecoration(
                color: APP_main_color,
                borderRadius: BorderRadius.circular(20)
              ),
              child: Text("提交", style: instanceTextStyle(14, Colors.white),),
            ),
          ),
          Positioned(
            top: 0,
            left: 0,
            right: 0,
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Padding(
                  padding: const EdgeInsets.only(top: 15, left: 20),
                  child: Text("请求上传学生证", style: instanceTextStyle(15, APP_font_black),),
                ),
                Container(
                  width: size.width - 27.5 * 2,
                  margin: const EdgeInsets.only(left: 27.5, top: 24.5),
                  height: 175.h,
                  decoration: BoxDecoration(
                    color: Colors.white,
                    border: Border.all(color:APP_divider_color, width: 0.5),
                    borderRadius: BorderRadius.circular(10)
                  ),
                  child: Icon(Icons.add, size: 60, color: APP_divider_color,),
                ),
              ],
            ),
          ),
        ],
      )
    );
  }
}